package com.bw.service;

import com.bw.bean.Emp;
import com.bw.mapper.EmpMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @date 2025年09月19日 10:54
 */
@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Override
    public int insert(Emp emp) {
        return empMapper.insert(emp);
    }

    @Override
    public int update(Emp emp) {
        return empMapper.update(emp);
    }

    @Override
    public int delect(Integer id) {
        return empMapper.delect(id);
    }

    @Override
    public Emp selectId(Integer id) {
        return empMapper.selectId(id);
    }

    @Override
    public List<Emp> selectAll() {
        return empMapper.selectAll();
    }
}
